home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ AutoRun Srv.xpl < prev    next >
Text File  |  1998-08-17  |  1KB  |  57 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 3.1"
  2. "TYPE"="8"
  3. "COUNT"="2"
  4. "UIPATH"="System\Startup"
  5. "NAME"="AutoRun Services"
  6. "LANGUAGE"="VBScript"
  7. "TEXT 1"="Show Info"
  8. "TEXT 2"="Delete"
  9. "DESCRIPTION 1"="These services (system programs) are automatically started when this computer is started."
  10. "DESCRIPTION 2"="Click "Show Info" to see the command that is executed or "Delete" to remove an item."
  11. "AUTHOR"="Xteq Systems"
  12. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  13. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
  14. "COMMENT 2"="Version 1.1"
  15.  
  16.  
  17. sP="HKLM\Software\Microsoft\Windows\CurrentVersion\RunServices\"
  18. Sub Plugin_Initialize 
  19.  iCount=RegEnumValues(sP)
  20.  
  21.  if iCount>0 then
  22.  
  23.   for l=1 to iCount
  24.    sName=RegEnumElement(l)
  25.    Call SetUIElement(l,sName)
  26.   Next
  27.  
  28.  else
  29.   Disable
  30.  end if
  31. End Sub
  32.  
  33. Sub Plugin_CheckData(ElementIndex)
  34. End Sub
  35.  
  36. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  37.  if ElementSubIndex>0 then
  38.   s=sp & RegEnumElement(ElementSubIndex)
  39.  
  40.   if ElementIndex=1 then 
  41.    s=RegReadValue(s)
  42.    Call MsgInformation("Command: " & vbCrlF & vbCrlf & s)
  43.   else 'Delete
  44.    Call RegDeleteValue(s)
  45.    Call SetUIElement(ElementSubIndex,"")
  46.    Call Restart
  47.   end if
  48.  
  49.  end if
  50. End Sub
  51.  
  52. Sub Plugin_Terminate 
  53. End Sub
  54.  
  55.  
  56.  
  57.